#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication w(argc, argv);
    int A=0;
    int B=0;
    int a;
    int b;
    int i=0;
    cout<<"Vvedite B: ";
    cin>>A;
    cout<<"Vvedite A: ";
    cin>>B;
    a=A;
    b=B;
    while(a<=B)
    {
        a=a+A;
        i++;
    }
    a=a-A;
    b=B-a;
    cout<<"A/B: "<<i<<", Ostatok: "<<b;
    return w.exec();
}
